<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link href="./style.css" rel="stylesheet">
</head>
<body>
	<div class="div-body">
		<div class="nav-title-bar">
			<span>AMC - Merchant System</span>
		</div>
		<div style="width: 100%; margin-top: 120px;" align="center">
			<h3 style="font-size: 28px;">Merchant Login</h3>
			<form action="/LoginServlet" method="post"
				style="width: 600px; height: 180px; line-height: 50px;">
				<table style="width: auto;">
					<tbody>
						<tr>
							<td>Username:</td>
							<td><input style="background-color: #fff; padding: 5px;"
								type="text" name="name" />${nameMsg}</td>
						</tr>
						<tr>
							<td>Password:</td>
							<td><input style="background-color: #fff; padding: 5px;"
								type="password" name="password" />${pswMsg}</td>
						</tr>
					</tbody>
				</table>
				<input class="add-button" type="submit" value="Login"
					style="width: 298px; height: 36px;" />
				<input class="delete-button" type="button" value="Register"
					onclick="location='/register.jsp'"
					style="width: 298px; height: 36px;" />
				<p>${loginMsg}</p>
			</form>
			<!-- <a href="/register.jsp">Go To Register</a> -->
		</div>
	</div>
</body>
</html>